home *** CD-ROM | disk | FTP | other *** search
- /* Use these functions as you would THINK C's SetUpA4 functions. The advantage
- is that these will work whether you're writing an application or a code
- resource. */
-
- #pragma once
-
- #if APPLICATION
- /* define SetCurrentA5 and SetA5 without including OSUtils.h */
- long _SetCurrentA5(void) = {0x200D,0x2A78,0x0904};
- #pragma parameter __D0 _SetA5(__D0)
- long _SetA5(long newA5) = 0xC18D;
- #define GlobalInit()
- #define GlobalRemember()
- #define GlobalSetup() { long _register = _SetCurrentA5();
- #define GlobalRestore() ((void) _SetA5(_register)); }
- #elif THINK_C
- #include <SetUpA4.h>
- #define GlobalInit() RememberA0()
- #define GlobalRemember() RememberA4()
- #define GlobalSetup() SetUpA4()
- #define GlobalRestore() RestoreA4()
- #endif
-
-